﻿Public Class SanBay

    Private dto_sanBay As DTO.SanBay

    Public Sub Sua_Init(ByVal dto_sanBay As DTO.SanBay)
        Me.dto_sanBay = dto_sanBay
        tb_maSanBay.Text = dto_sanBay.Ma
        tb_tenSanBay.Text = dto_sanBay.Ten
        lb_tenform.Text = "Sửa sân bay"
        OK_Button.Text = "Lưu"
    End Sub

    Public Sub ThemMoi_Init()
        Me.dto_sanBay = Nothing
        tb_maSanBay.Text = String.Empty
        tb_tenSanBay.Text = String.Empty
        lb_tenform.Text = "Thêm mới sân bay"
        OK_Button.Text = "Thêm mới"
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Hide()
    End Sub

    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Hide()
    End Sub

End Class